package com.xr.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xr.blog.pojo.BlogArticle;
import com.xr.blog.pojo.BlogSpider;

import java.io.IOException;

/**
 * 爬虫规则
 *
 * @author XRJ
 * @email 1033835209@qq.com
 * @date 2020-07-07 20:31:38
 */
public interface BlogSpiderService extends IService<BlogSpider> {


    /**
     * 抓取文章
     * @param spider 抓取规则
     * @param url 抓取的链接
     * @return 抓取到的文章
     */
    BlogArticle spiderArticle(BlogSpider spider, String url) throws IOException;
}

